package com.LittleHan.crm.exceptionHandler;

import com.LittleHan.crm.exception.ClueRemarkActivityRemoveException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;
@ControllerAdvice
public class ClueRemarkActivityRemoveExceptionHandler {
    @ExceptionHandler(ClueRemarkActivityRemoveException.class)
    @ResponseBody
    public Map<String,String> ClueRemarkActivityRemoveException(Exception e){
        Map<String,String> map=new HashMap<>();
        map.put("yesOrNo","no");
        return map;
    }
}
